package com.springtest.reflect;

/**
 * project : my-learn
 * <p> 反射实验类 </p>
 *
 * @author yisl
 * @date 2022-06-09【星期四】
 **/
public class User {

    private int age;

    public String name;

    public User(){}

    public User(String name){
        this.name = name;
    }

    public User(int age, String name){
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String test(){
        String k = "123444";
        try{
            //int kk = 1/0;
            return k;
        }catch (Exception e){
            k = "123555";
            return k;
        }finally {
            k = "789";
        }
    }
}
